package com.shuwa.service.impl;

import com.shuwa.dao.ProductorDao;
import com.shuwa.pojo.OrderInf;
import com.shuwa.pojo.OrderList;
import com.shuwa.pojo.ProductorLabel;
import com.shuwa.service.ProductorService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("ProductorService")
public class ProductorImpl implements ProductorService {

    @Resource
    private ProductorDao productorDao;

    @Override
    public List<ProductorLabel> ShowLabelProduct(String label) {
        return productorDao.ShowLabelProduct(label);
    }

    @Override
    public List<OrderList> GetMyReleasedOrderList(Integer userpid) {
        return productorDao.GetMyReleasedOrderList(userpid);
    }

    @Override
    public List<OrderList> GetMyOrderList(Integer userpid) {
        return productorDao.GetMyOrderList(userpid);
    }

    @Override
    public OrderInf GetOrderInf(Integer pid) {
        return productorDao.GetOrderInf(pid);
    }
}
